/*
 *  Copyright 2008 Mark Ashworth <javameme@gmail.com>.
 * 
 *  Licensed under the GNU General Public License v3 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 * 
 *       http://www.gnu.org/licenses/gpl-3.0.html
 * 
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 *  under the License.
 */
package xperiment.metaphor.service.action.impl;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import xperiment.metaphor.service.action.PersistAction;

/**
 * An empty implementation of the PersistAction
 * @author Mark Ashworth <javameme@gmail.com>
 * @version 1.0.0
 */
public class AbstractPersistAction implements PersistAction {
    /** Logger */
    protected Logger logger = LoggerFactory.getLogger(getClass());
    
    /**
     * An implementatin that returns the object that was passed
     * @param object The object
     * @return Object
     */
    @Override
    public Object after(Object object) {
        return object;
    }

    /**
     * An implementatin that returns the object that was passed
     * @param object The object
     * @return Object
     */
    @Override
    public Object before(Object object) {
        return object;
    }
}
